package main

import "fmt"

type Books struct {
	title   string
	author  string
	subject string
	book_id int
}

func (book Books) printBookInfo() {
	fmt.Printf("书籍:%q的作者是%q，属于类别是%q，书籍id是%d", book.title, book.author, book.subject, book.book_id)
}

func main() {
	var book1 Books = Books{
		"一",
		"一",
		"一",
		1,
	}
	book1.title = "如何阅读一本书"
	book1.printBookInfo()
	fmt.Println("book1", book1)
}
